package cn.edu.zafu.bigdata.x.bd121.book;

/**
 * 书籍类
 *
 * @author 202211090121
 */
public class Book {

    /**
     * 书籍标题
     */
    private String title;

    /**
     * 书籍作者
     */
    private String author;

    /**
     * 书籍价格
     */
    private double price;

    @Override
    public String toString() {
        return "Book{" +
                "title='" + title + '\'' +
                ", author='" + author + '\'' +
                ", price=" + price +
                '}';
    }

    //region java bean


    public Book(String title, String author, double price) {
        this.title = title;
        this.author = author;
        this.price = price;
    }

    public Book() {
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
    //endregion
}
